import Http  from './http';
import Api  from './api';

class OrderService {

  static add(data) {
    return Http.request({
      url:Api.Order.add,
      method:'POST',
      data:data
    });
  }

  static addByPrize(data) {
    return Http.request({
      url:Api.Order.addByPrize,
      method:'POST',
      data:data
    });
  }

  static addByJF(data) {
    return Http.request({
      url:Api.Order.addByJF,
      method:'POST',
      data:data
    });
  }

  static addByCart(data) {
    return Http.request({
      url:Api.Order.addByCart,
      method:'POST',
      data:data
    });
  }

  static pageListForCustomer(data) {
    return Http.request({
      url:Api.Order.pageListForCustomer,
      method:'GET',
      data:data
    });
  }

  static confirmTakeGoods(data) {
    return Http.request({
      url:Api.Order.confirmTakeGoods,
      method:'GET',
      data:data
    });
  }

}
export default OrderService;
